home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / timer.inc < prev    next >
Text File  |  1998-06-24  |  484b  |  31 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/io.inc";
  3.  
  4. def UNIT_MICROHZ = 0;
  5. def UNIT_VBLANK = 1;
  6. def UNIT_ECLOCK = 2;
  7. def UNIT_WAITUNTIL = 3;
  8. def UNIT_WAITECLOCK = 4;
  9.  
  10. def TIMERNAME = "timer.device";
  11.  
  12. struct timeval is
  13.   tv_secs:ulong;
  14.   tv_micro:ulong;
  15. ;
  16.  
  17. struct EClockVal is
  18.   ev_hi:ulong;
  19.   ev_lo:ulong;
  20. ;
  21.  
  22. struct timerequest is
  23.   tr_node:IORequest;
  24.   tr_time:timeval;
  25. ;
  26.  
  27. def TR_ADDREQUEST = CMD_NONSTD;
  28. def TR_GETSYSTIME = (CMD_NONSTD+1);
  29. def TR_SETSYSTIME = (CMD_NONSTD+2);
  30.  
  31.